print("------------------>>")
local filter_str = "    "
function serialize(obj,deep)
    deep = deep or 0
    local lua = ""  
    local filter = ""
    for i = 1, deep do
        filter = filter.. filter_str
    end
    local t = type(obj)  
    if t == "number" then  
        lua = lua .. obj  
    elseif t == "boolean" then  
        lua = lua .. tostring(obj)  
    elseif t == "string" then  
        lua = lua .. string.format("%q", obj)
    elseif t == "table" then  
        lua = lua .. "\n"..filter.."{\n"

        for k, v in pairs(obj) do  
            lua = lua .. filter..filter_str.."[" .. serialize(k,deep +1) .. "] = " .. serialize(v,deep +1) .. ",\n"  
        end  
        local metatable = getmetatable(obj)  
        if metatable ~= nil and type(metatable.__index) == "table" then  
            for k, v in pairs(metatable.__index) do  
                lua = lua .. filter..filter_str.. "[" .. serialize(k,deep +1) .. "] = " .. serialize(v,deep +1) .. ",\n"  
            end  
        end  
        lua = lua..filter.."}"  
    elseif t == "nil" then  
        return nil  
    elseif t == "userdata" then
        lua = lua .. string.format("%q", "userdata")  
    else
        lua = lua .. string.format("%q", "undefind")  
    end
    return lua  
end

function table2string(tablevalue)
    local stringtable = serialize(tablevalue)
    return stringtable
end
function pprint(value)
    print(table2string(value))
end
local data = {1,2,3,4,{1,2,3,4}}

pprint(CS.LuaTool.Instance.isResetEnv)
